import debounce from 'lodash.debounce'
// import _ from 'lodash'

export default {
  data () {
    return {
      filterText: '',
      timerId: null,
      debounceSearch: debounce(this.getData, 500)
      // debounceSearch: _.debounce(this.getData, 500)
    }
  },
  methods: {
    handleInput () {
      this.paginator.pageIndex !== 1 && (this.paginator.pageIndex = 1)
      this.debounceSearch()
    }
  }
}
